import request from '@/config/axios'

export const CargoPlanApi = {
    // 查询计划分页
  getCargoPlanPage: async (params: any) => {
    return await request.get({ url: `/business/cargo-plan/page`, params })
  },

  // 查询货物资料详情
  getCargoPlan: async (id: number) => {
    return await request.get({ url: `/business/cargo-plan/get?id=` + id })
  },

  // 修改货物资料
  updateCargoPlan: async (data: any) => {
    return await request.put({ url: `/business/cargo-plan/update`, data })
  },
  // 下载计划历史
  downloadCargoPlanExcel: async (id: number) => {
    return request.download({ url: `/business/cargo-plan/download-excel?id=${id}` })
  }
}
